<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>js事件</title>
		<script>
			function al(){
				alert("html加载完成了");
			}
			function show1(){
				alert("衣冠禽兽");
			}
			function show2(){
				alert("道貌岸然");
			}
			function keypres(){
				console.log("右键被按了。。。");
			}
			function show3(){
				alert("选择发生了变化");
			}
		</script>
	</head>
	<body onload="al()">
		<div id="d1" onmouseover="show1()" onmouseout="show2()">
			王凯旋是个大帅锅
		</div>
		<input type="text" name="uname" onkeypress="keypres()"/>
		<select name="city" onchange="show3()">
			<option value="hefei">合肥</option>
			<option value="wuhu">芜湖</option>
			<option value="蚌埠">蚌埠</option>
			<option value="anqing">安庆</option>
			
		</select>
	</body>
</html>
